package itheima.com.Demo01.demo01.Map03;

import java.util.HashMap;
import java.util.Map;

public class TestMap {
    public static void main(String[] args) {
        Map<Student02,String> map = new HashMap<>();
        Student02 s1 = new Student02("张翼德",20);
        Student02 s2 = new Student02("关云长",26);
        Student02 s3 = new Student02("刘备",23);
        map.put(s1,"湖南");
        map.put(s2,"湖北");
        map.put(s3,"天津");
        map.forEach(
                (Student02 s , String ss)->{
                    System.out.println(s+"===="+ss);
                }
        );
    }
}
